package com.yanhao.aop.textviewaspect;

import android.util.Log;
import android.widget.TextView;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class TextViewAspectj {

    private static final String TAG = "TextView_TAG";

    @AfterReturning(pointcut = "execution(* *..*.testAfterReturning())", returning = "textView")
    public void getTextView(TextView textView) {
        Log.e(TAG, "切面text: --- 进入 ---"+textView.getText().toString());
    }
}
